package edu.whu;

public class MyClass {
    public int id;
    public String name;

    public MyClass(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public MyClass() {
    }

    @initMethod
    public void init2(int k){
        System.out.println("init2方法");
    }

    @initMethod
    public void init(){
        System.out.println("执行init方法");
    }
}
